package club.gskj.gulimall.order.to;

import club.gskj.gulimall.order.entity.OrderEntity;
import club.gskj.gulimall.order.entity.OrderItemEntity;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

/**
 * 封装 订单的所有详细信息
 */
@Data
public class OrderCreateTo {

    /**
     * 订单信息
     */
    private OrderEntity order;

    /**
     * 订单项信息
     */
    private List<OrderItemEntity> orderItemList;

    /**
     * 运费
     */
    private BigDecimal freight;
    /**
     * 应付价格
     */
    private BigDecimal payPrice;
}
